package cn.mily.org.mapper;

import cn.mily.basics.mapper.BasicMapper;
import cn.mily.org.domain.Department;
import cn.mily.org.domain.Employee;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DepartmentMapper extends BasicMapper<Department> {
    /*获取部门名*/
    List<Employee> getMangerName();
    /*获取上级部门名*/
    List<Department> findParentName(Long id);
    /*找到子部门*/
    List<Department> findChildByid(@Param("id") Long id,@Param("cid") Long cid);
}
